package com.cloudkinto.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloudkinto.entity.CompanyDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.extentity.CustomerAnalysisDto;
import com.cloudkinto.extentity.CustomerAnalysisRes;
import com.cloudkinto.extentity.CustomerOrderAnalysisDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author 张永远
 * @since 2020-05-27
 */
@Mapper
public interface CompanyDao extends BaseMapper<CompanyDo> {
    CustomerAnalysisRes getCustomerAnalysisInfo();

    List<CustomerAnalysisDto> getCustomerAnalysisList();

    List<CustomerOrderAnalysisDto> getCustomerOrderAnalysisInfo(IPage<CustomerOrderAnalysisDto> page, @Param("map") Map map, List<Long> companyIdList);
}
